package com.shsh.safemanage.dao;

import java.sql.Connection;
import java.sql.DriverManager;

public class ConnectionManager {
	public static Connection getSafeManageConn() {
		try {
			Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
			
			String url = "jdbc:sqlserver://localhost:1433;DatabaseName=safe_manage";
			String username = "sa";
			String password = "123";
			
			Connection conn = DriverManager.getConnection(url, username, password);
			
			return conn;
		} catch (Throwable t) {
			t.printStackTrace();
		}
		
		return null;
	}
}
